package com.situ.fly.entity;

import java.util.Date;	// 必须是这个包

/**
 * User实体类, 与数据库中的user表对应
 * 1) 实体类名与数据表名一样
 * 2) 实体类中的属性要与数据表中的字段相对应
 * 		属性名与字段名保持一致
 * 		属性类型与字段类型保持匹配
 * 3) 实体类的属性要私有化		javabean
 * 		使用private关键字修饰属性
 * 		提供公共的get和set方法
 * 		菜单->Source->Generate Getters and Setters ...
 * 		在弹出的窗口中,点击右上角的Select All
 * 		再点击下面的Generate按钮即可
 * 
 * 4) 实体类必须拥有一个无参的构造方法
 * 
 * @author bobzyh
 *
 */
public class User {
	private Integer id;	// 8种基本数据类型-> 8种包装类
	private String username;
	private String password;
	private String nickname;
	private String sex;
	private String city;
	private String phone;
	private String email;
	private String head;
	private String signature;
	private Integer kiss;
	private Integer vip;
	private Integer role;
	private Date regtime;	// 使用java.util.Date
	private String cert;
	private Integer status;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getHead() {
		return head;
	}
	public void setHead(String head) {
		this.head = head;
	}
	public String getSignature() {
		return signature;
	}
	public void setSignature(String signature) {
		this.signature = signature;
	}
	public Integer getKiss() {
		return kiss;
	}
	public void setKiss(Integer kiss) {
		this.kiss = kiss;
	}
	public Integer getVip() {
		return vip;
	}
	public void setVip(Integer vip) {
		this.vip = vip;
	}
	public Integer getRole() {
		return role;
	}
	public void setRole(Integer role) {
		this.role = role;
	}
	public Date getRegtime() {
		return regtime;
	}
	public void setRegtime(Date regtime) {
		this.regtime = regtime;
	}
	public String getCert() {
		return cert;
	}
	public void setCert(String cert) {
		this.cert = cert;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	
}
